.header {
  width: 100%;
  /* 实际占有高 */
  height: 44px;
  min-width: 320px;
  /* 最大宽度 只能用px */
  max-width: 540px;
  padding: 7px 50px 0 8px;
  /* 固定定位 脱标  水平居中和绝对定位一样*/
  position: fixed;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  /* 最小宽度 */
  border-bottom: 1px solid #cccccc;
  border-top: 1px solid #cccccc;
  /* 内减盒模型 */
  box-sizing: border-box;
  // background-color: #ececed;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 98;

  .search {
    /* 标准流 */
    width: 100%;
    height: 28px;
    color: #808080;
    line-height: 24px;
    padding-left: 35px;
    /* 内减盒 */
    box-sizing: border-box;
    border: 1px solid #ececed;
    box-shadow: 1px 2px 3px rgba(0, 0, 0, .1);
    border-radius: 28px;
    background-color: #fff;
    position: relative;
    z-index: 99;

    span {
      height: 28px;
      line-height: 28px;
      font-size: 0.9rem;
    }

    span::before {
      /* 移动端图片 图片放大两倍  缩小一半使用 */
      content: "";
      /* 行内元素 参考: 距离最近且有定位的祖先元素*/
      position: absolute;
      left: 12px;
      top: 5px;
      width: 18px;
      height: 18px;
      overflow: hidden;
      background: url(../img/home-common-sprite2x@v7.15.png) no-repeat 0 0;
      background-size: 21px auto;
    }
  }

  .login {
    /* 固定值  绝对定位 子绝父固 */
    position: absolute;
    width: 50px;
    height: 39px;
    right: 0;
    top: 4px;
    /* 文字 */
    color: #fff;
    font-size: 0.7rem;
    text-align: center;
    line-height: 14px;

    span {
      display: block;
      width: 22px;
      height: 22px;
      margin: 0 auto;
      background: url(../img/home-common-sprite2x@v7.15.png) no-repeat;
      background-position:  1px -36px;
      background-size: 21px auto;
    }
  }

}

/* 轮播图部分 */
.banner {
  width: 100%;
  min-width: 320px;
  max-width: 540px;
  /* 省略高度 内容撑开 */
  height: 260px;
  margin: -30px auto 0;
  border-bottom-right-radius: 10%;
  border-bottom-left-radius: 10%;
  position: relative;
  overflow: hidden;
}


.banner #carousel {
  position: absolute;
  width: 100% * 4;
  height: 100%;
  left: 0;
  top: 0;
}

.banner #carousel ul li {
  float: left;
  width: 25%;
}

.banner #carousel img {
  display: block;
  width: 100%;
  height: 100%;
}

/* 主导航一 */
.main-one {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 94%;
  min-width: 300px;
  max-width: 520px;
  height: 60px;
  margin: -40px auto 10px;
  padding: 4px 0 8px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  position: relative;
  z-index: 11;

  a {
    display: block;
    line-height: 10px;
    color: #222;
    font-size: 12px;

    span:first-child {
      display: block;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-image: url(../img/home-fivemain-sprite2x@v7.15.png);
      background-repeat: no-repeat;
      background-size: 40px auto;
    }
  }

  a:nth-child(2) span:first-child {
    background-position: 0 -40px;
  }

  a:nth-child(3) span:first-child {
    background-position: 0 -80px;
  }

  a:nth-child(4) span:first-child {
    background-position: 0 -120px;
  }

  a:nth-child(5) span:first-child {
    background-position: 0 -160px;
  }

}

/* 主导航二 */
.main-two {
  width: 94%;
  min-width: 320px;
  max-width: 540px;
  height: 196px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;

  ul {
    width: 100%;
    height: 100%;
  }

  li {
    float: left;
    height: 33.3%;
    width: 23%;
    border-bottom: 1px solid #fff;
    position: relative;
    background-color: #53bbed;
  }

  li:nth-child(n+8) {
    border-bottom: none;
  }

  li:nth-child(1),
  li:nth-child(4),
  li:nth-child(8) {
    width: 31%;

    a {
      margin-left: -30px;
    }
  }

  li:nth-child(1) {
    background: linear-gradient(to right, #fa5a56, #f98d75);
  }

  li:nth-child(2) {
    background: linear-gradient(to right, #f98d75, #f58d5c);
  }

  li:nth-child(3) {
    width: 46%;
    background: linear-gradient(to right, #ffbc49, #fed367);
  }

  li:nth-child(4) {
    background: linear-gradient(to bottom right, #5179b1, #55a8fa);
  }

  li:nth-child(5) {
    background: linear-gradient(to bottom right, #4d8fd1, #53bbed);
  }

  li:nth-child(8) {
    background: linear-gradient(to bottom right, #35c2a9, #45c890);
  }

  li:nth-child(9) {
    background: linear-gradient(to bottom right, #46c88e, #6dcf8f);
  }

  li:nth-child(10) {
    background: linear-gradient(to top right, #66d18b, #5fd16a);
  }

  li:nth-child(11) {
    background: linear-gradient(to bottom right, #67d172, #63c552);
  }

  li span {
    display: block;
    width: 100%;
    height: 100%;
  }

  li:nth-child(3) span {
    background-image: url(../img/grid-nav-items-jhj@v7.15.png);
    background-size: 86px auto;
    background-position: right bottom;
    background-repeat: no-repeat;
  }

  li:first-child span,
  li:nth-child(4) span,
  li:nth-child(8) span {
    background-image: url(../img/grid-nav-items-hotel@v7.15.png);
    background-size: 73px auto;
    background-position: right bottom;
    background-repeat: no-repeat;
  }

  li:nth-child(4) span {
    background-image: url(../img/grid-nav-items-flight@v7.15.png);
    background-size: 79px auto;
  }

  li:nth-child(8) span {
    background-image: url(../img/grid-nav-items-travel@v7.15.png);
    background-size: 94px auto;
  }

  li:nth-child(2) span,
  li:nth-child(5) span,
  li:nth-child(9) span {
    background-image: url(../img/grid-nav-items-minsu@v7.15.png);
    background-size: 37px auto;
    background-position: left bottom;
    background-repeat: no-repeat;
  }

  li:nth-child(5) span {
    background-image: url(../img/grid-nav-items-train.png);
  }

  li:nth-child(9) span {
    background-image: url(../img/grid-nav-items-dingzhi@v7.15.png);
    background-size: 61px auto;
  }

  li a {
    display: inline-block;
    font-size: 14px;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 50%;
    margin-top: -10px;
  }

  li:nth-child(3) a {
    color: #b36a21;
  }

  li:nth-child(3) em {
    font-size: .63rem;
    color: #fff;
    background-color: #f54c45;
    border-radius: 7px 7px 7px 0;
    position: absolute;
    top: 7px;
    right: 20%;
    padding: 2px 5px;
  }
}

/* 主导航三 */
.main-three {
  width: 94%;
  min-width: 320px;
  max-width: 540px;
  height: 105px;
  margin: 12px auto;

  div {
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 50%;
  }

  a {
    display: block;
    height: 100%;
    width: 16%;
    color: #000;
    font-size: .63rem;
    text-align: center;
  }

  a::before {
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    background-image: url(../img/un_ico_subnav2x@v7.152.png);
    background-size: 28px auto;
    background-repeat: no-repeat;
    margin: .63rem auto .31rem;
  }

  div:first-child {
    a:nth-child(2)::before {
      background-position: 0 -28px;
    }

    a:nth-child(3)::before {
      background-position: 0 -56px;
    }

    a:nth-child(4)::before {
      background-position: 0 -84px;
    }

    a:nth-child(5)::before {
      background-position: 0 -112px;
    }
  }

  div:last-child {
    a:nth-child(1)::before {
      background-position: 0 -140px;
    }

    a:nth-child(2)::before {
      background-position: 0 -168px;
    }

    a:nth-child(3)::before {
      background-position: 0 -196px;
    }

    a:nth-child(4)::before {
      background-position: 0 -224px;
    }

    a:nth-child(5)::before {
      background-position: 0 -256px;
    }
  }

}

/* 热门活动 */
.sales-box {
  width: 100%;
  min-width: 320px;
  max-width: 540px;
  margin: 0 auto;
  overflow: hidden;

  .sales-hd {
    width: 100%;
    border-top: 1px solid #d3d3d3;
    border-bottom: 1px solid #d3d3d3;
    box-sizing: border-box;
    background-color: #fff;
    position: relative;

    .title {
      padding-top: 44px;
      height: 0;
      overflow: hidden;

      .icon-gg {
        position: absolute;
        left: 90px;
        top: 50%;
        background: url(../img/icon-guangao.png) no-repeat;
        background-size: 36px auto;
        width: 36px;
        height: 15px;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
      }
    }

    .title:after {
      content: '';
      display: inline-block;
      position: absolute;
      left: 12px;
      top: 50%;
      width: 79px;
      height: 15px;
      background: url(../img/un_home_text.png) no-repeat;
      background-position: 0 -19px;
      background-size: 79px auto;
      -webkit-transform: translateY(-50%);
      transform: translateY(-50%);
    }

    a {
      position: absolute;
      right: 4%;
      top: 50%;
      transform: translateY(-50%);
      font-size: 0.75rem;
      padding: 2px 20px 2px 10px;
      border-radius: 50px;
      background: linear-gradient(to right, #ff4e63, #ff6cc9)
    }

    a:after {
      content: '';
      position: absolute;
      top: 6px;
      right: 9px;
      width: 7px;
      height: 7px;
      border: 2px solid #fff;
      border-width: 0 2px 2px 0;
      -webkit-transform: rotate(-45deg);
      transform: rotate(-45deg);
    }
  }

  .sales-bd {
    width: 100%;

    .row:nth-child(1) {
      height: 140px;
      display: flex;
      justify-content: space-between;
    }

    .row:nth-child(n+2) {
      height: 88px;
      display: flex;
      justify-content: space-between;
    }

    img {
      width: 50%;
      height: 100%;
      border-bottom: 1px solid #d3d3d3;
      box-sizing: border-box;
    }

    img:nth-child(2n + 1) {
      border-right: 1px solid #d3d3d3;
    }

    .row:last-child img {
      border-bottom: none;
    }
  }
}

/* 尾部 */
.tool-box {
  width: 100%;
  min-width: 320px;
  max-width: 540px;
  // height: 360px;
  margin: 10px auto 0;

  .tool-cn {
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 60px;
    border-top: 1px solid #d3d3d3;
    border-bottom: 1px solid #ececec;
    box-sizing: border-box;
    background-color: #fff;
    // position: relative;

    a {
      color: #333;
      font-size: 12px;
      // margin-top: 30px;
      line-height: 90px;
      position: relative;
    }

    a::before {
      content: "";
      width: 20px;
      height: 20px;
      background: url(../img/icon-footer.png) no-repeat -60px -150px;
      background-size: 104px 327.5px;
      position: absolute;
      top: 10px;
      left: 50%;
      transform: translateX(-50%);
    }

    a:nth-child(2)::before {
      background-position: -60px -170px;
    }

    a:nth-child(3)::before {
      background-position: -60px -308px;
    }
  }

  .tool-ver {
    margin: 5px auto;
    text-align: center;

    a {
      color: #676767;
      font-size: 0.75rem;
    }

    .icon-global {
      display: inline-block;
      width: 11px;
      height: 11px;
      background: url(../img/un_icon_sites.png) no-repeat 0 -160px;
      background-size: 30px 183px;
      margin-right: 2px;
    }

    .triangle {
      display: inline-block;
      width: 5px;
      height: 5px;
      border: 1px solid #666666;
      border-width: 0 1px 1px 0;
      transform: rotate(45deg);
      vertical-align: .15rem;
      margin: 0 3px;
    }
  }

  p {
    margin: 0;
    padding: 5px 0;
    color: #999;
    font-size: 12px;
    text-align: center;

    a {
      color: #999;
    }
  }

}